package com.hc.service;

import com.hc.bean.Order;
import com.hc.bean.OrderDetail;
import com.hc.bean.Pager;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderService {
    /*添加订单*/
    Boolean addOrder(Order order);

    /*添加订单明细*/
    Boolean addOrderDetail(OrderDetail orderdetail);

    /*根据用户id查询订单所有信息*/
    List<Order> getOrderByUid(Pager pager,Integer userId);

    /*根据用户id查询订单总行数*/
    List<Order> getOrderCountByUid(int userId);
}
